package com.kaifamiao.model;


import lombok.Data;

/**
 * @author lucien-ma
 * @date 2021/8/19
 * @apiNote
 */
@Data
public class User {

    private int num;

    private Role role;

    public User(){}

    public User(int num, Role role) {
        this.num = num;
        this.role = role;
        System.out.println("User() 执行了");
    }

    @Override
    public String toString() {
        return "User{" +
                "num=" + num +
                ", role=" + role +
                '}';
    }
}
